import VueRouter from 'vue-router';
import Header from './components/header';
import Home from './components/home';
import News from './components/news';
import News1 from './components/news1';
import News2 from './components/news2';

export default new VueRouter({
    routes:[
        {
            path:'/',
            name:'',
            components:{
                header:Header,
                default:Home
            }
        },
        {
            path:'/news',
            name:'news',
            components:{
                header:Header,
                default:News
            },
            children:[
                {
                    path:'1',
                    name:'',
                    component:News1
                },
                {
                    path:'2',
                    name:'',
                    component:News2
                },
            ]
        }
    ]
})